<?php


namespace Part17_AdapterMode\Code2;

/**
 * @desc 球员抽象类
 */
abstract class Player
{
    protected $name;

    public function __construct($name)
    {
        $this->name = $name;
    }

    /**
     * @desc 外籍球员进攻方法
     */
    public abstract function Attack();

    /**
     * @desc 外籍球员防守方法
     */
    public abstract function Defence();
}